<?php
namespace Goatherd\Content\Engine\Resource;

use Goatherd\Commons\Collection\Entity;

/**
 * Basic resource implementation.
 *
 * @category ContentEngine
 * @package Goatherd\Content\Engine
 * @subpackage Resource
 */
class Resource
extends Entity
implements IResource
{
    /**
     *
     * @var string
     */
    protected $_identifier = null;

    /**
     *
     * @var \Goatherd\Commons\Collection\IEntity
     */
    protected $_meta = null;

    /**
     *
     * @var mixed
     */
    protected $_content = null;

    /**
     *
     * @param mixed $identifier
     */
    public function __construct($identifier)
    {
        $this->_identifier = $identifier;
    }

    /**
     * (non-PHPdoc)
     * @see Goatherd\Content\Engine\Reader.IResource::setContent()
     */
    public function setContent($content)
    {
        $this->_content = $content;

        return $this;
    }

    /**
     * (non-PHPdoc)
     * @see Goatherd\Content\Engine\Reader.IResource::getContent()
     */
    public function getContent()
    {
        return $this->_content;
    }
}